package cn.hy.dataSync.statistics.container.communicator;


import cn.hy.dataSync.config.TaskConfig;
import cn.hy.dataSync.statistics.communication.Communication;
import cn.hy.dataSync.statistics.container.report.AbstractReporter;

/**
 *  任务容器 ？
 */
public class TaskContainerCommunicator extends AbstractTaskContainerCommunicator {

    public TaskContainerCommunicator(TaskConfig taskConfig, AbstractReporter reporter) {
        super(taskConfig);
        super.setReporter(reporter);
    }

    @Override
    public void report(Communication communication) {
        super.getReporter().reportTaskCommunication(super.taskId, communication);
    }
}
